{extend name="normal_base" /}
{block name="navigation"}{/block}
{block name="css"}
<style>
</style>
{/block}
{block name="body"}
<div class="x-body">
    {foreach name="set_list" item="vo"}
    <form class="layui-form" method="POST" action="{:url('other_set')}">
        <div class="layui-form-item">
            <label for="contract-number-view" class="layui-form-label">
                {$vo.title}：
            </label>
            <div class="layui-input-inline">
                <input type="text" id="contract-number-view" name="{$vo.name}" value="{$vo.value}" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-input-inline">
                <button  class="layui-btn" lay-filter="add" lay-submit="">
                    修改
                </button>
            </div>
        </div>
    </form>
    {/foreach}
</div>
{/block}

{block name="script"}
<script>
    layui.use(['form','layer'], function() {
        $ = layui.jquery;
        var layer = layui.layer;
        var flag = {$flag};
        var alert_msg = '{$alert_msg}';
        if (flag == 1) {
            layer.msg(alert_msg,{icon:6,time:1500});
        } else if (flag == 2) {
            layer.msg(alert_msg,{icon:5,time:1500});
        }
    });
</script>
{/block}